﻿using ServerBase.Config;
using System.Threading.Channels;

namespace SvGame.Logic;

public static partial class GameLogic
{
    // 宣布
    public static void Announce(this IRole ob, string act, string msg = "")
    {
        switch (act)
        {
            case "dead":
                MessageVision("$N死了。\n", ob);
                break;
            case "unconcious":
                MessageVision("$N脚下一个不稳，跌在地上一动也不动了。\n", ob);
                break;
            case "revive":
                MessageVision("$N慢慢睁开眼睛，清醒了过来。\n", ob);
                break;
            case "death_rumor":
                ob.Chat(ChatChannel.Rumor, msg);
                break;
        }
    }
}
